import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        number: 0,

    },

    mutations: {
        ADD_COUNT(state) {
            state.number = state.number + 1;
        },
        SUB_COUNT(state) {
            state.number = state.number - 1;
        },

    }
})